<template>
  <div class="Equipment-data">
    <el-card :body-style="{ padding: '0px' }">
      <div slot="header">
        <!-- <el-input size="small" placeholder="请输入设备地址" v-model="query" class="input-with-select" >
        </el-input> -->
        <tools-btn
          :toolsData="toolsData"
          @addData="addData"
          @refresh="refresh"
          @search="search"
          @fieldSet="fieldSet"
          @hasOperation="hasOperation"
        />
      </div>
    </el-card>
  </div>
</template>
<script>
import ToolsBtn from "../../components/Tools/ToolsBtn";
export default {
  name: "Equipment",
  data() {
    return {
      toolsData: {
        title: "厂家设备",
        oBtnShow: [
          { btn0: true }, // 新增按钮
          { btn1: true }, // 刷新按钮
          { btn2: false }, // 搜索按钮
          { btn3: false }, // 设置按钮
          { btn4: false } // 导出Excel按钮
        ]
      }
    }
  },
  components: {
    ToolsBtn
  },
  methods: {
    //新增用户
    addData(){
      // 新增
      // console.log('新增')
      this.handleEdit();
    },
    // 数据刷新
    refresh(){
      //刷新
      // console.log('刷新')
      this.getList(1,50)
    },
    // 搜素数据
    search(){
      // console.log('搜素')
      // console.log(this.query)
    },
    // 字段设置
    fieldSet() {
      // console.log("字段设置");
    },
     // 隐藏表格操作列
    hasOperation() {
      // console.log("隐藏表格操作列");
      this.table.hasOperation = !this.table.hasOperation;
    }
  }
}
</script>
<style lang="scss" scoped>

</style>


